<template>
  <div class="top-left-cmp">
    <div class="dc-left">
      <dv-border-box-5>
        <div class="main-value"><span>45</span>件</div>
        <div class="compare-value"><span>同比</span>56</div>
      </dv-border-box-5>
      <div class="dc-text">
        当期农事任务
        <dv-decoration-3 style="width:200px;height:20px;"/>
      </div>
    </div>
    <div class="dc-right">
      <div class="dc-text">
        农田物联网操作
        <dv-decoration-3 style="width:200px;height:20px;"/>
      </div>
      <dv-border-box-5 :reverse="true">
        <div class="main-value"><span>{{ count_OP[0] }}</span>次/ 日</div>
        <div class="compare-value"><span>同比</span>{{ count_OP[1] }}</div>
      </dv-border-box-5>
    </div>
  </div>
</template>

<script>
export default {
  name: 'TopLeftCmp',
  props: ['count_OP'],
  data() {
    return {
    }
  }
}
</script>

<style lang="less">
.top-left-cmp {
  width: 30%;
  height: 60%;
  display: flex;

  .dc-left, .dc-right {
    width: 50%;
  }

  .dv-border-box-5 {
    height: 60%;
  }

  .dc-text {
    display: flex;
    flex-direction: column;
    height: 40%;
    font-size: 20px;
    padding: 20px;
    box-sizing: border-box;
  }

  .dc-left .dc-text {
    align-items: flex-end;
    justify-content: center;
  }

  .dc-right .dc-text {
    justify-content: flex-start;
    padding-top: 20px;
  }

  .dc-left .dv-border-box-5 {
    padding: 30px;
    box-sizing: border-box;
  }

  .dc-right .dv-border-box-5 {
    padding: 40px;
    box-sizing: border-box;
  }

  .main-value {
    font-weight: bold;
    font-size: 30px;

    span {
      font-size: 50px;
      color: #00c0ff;
      margin-right: 15px;
    }
  }

  .compare-value {
    height: 35px;
    line-height: 35px;
    font-size: 18px;

    span {
      margin-right: 30px;
    }
  }
}
</style>
